/**
 * Description:
 * Class Name:EnumMapTest
 * Date:2022/3/6 17:06
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第8章_Java集合._8_6_增强的Map集合._8_6_8_EnumMap实现类;

import java.util.EnumMap;

enum Season{
    SPRING, SUMMER, FALL, WINTER
}

public class EnumMapTest {
    public static void main(String[] args) {
        var em = new EnumMap(Season.class);
        em.put(Season.SPRING, "春暖花开");
        em.put(Season.SUMMER, "夏日炎炎");
        System.out.println(em);
    }
}
//{SPRING=春暖花开, SUMMER=夏日炎炎}